<!DOCTYPE html>
<html xmlns:shiro="http://www.w3.org/1999/xhtml" xmlns:th="http://www.w3.org/1999/xhtml">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="col-sm-12">
        <div class="ibox">
            <div class="ibox-body">
                <div class="fixed-table-toolbar">
                    <div class="columns pull-right" role="group">
                        <button class="btn btn-success" onclick="reLoad()">
                            <i aria-hidden="true" class="fa fa-search"></i>查询
                        </button>
                        <!--							<button class="btn btn-danger" shiro:hasPermission="statistics:commander:export" onclick="exportStatistics()">-->
                        <!--								<i class="fa fa-mail-reply-all" aria-hidden="true"></i>导出-->
                        <!--							</button>-->
                    </div>


                    <div class="columns pull-left col-md-2 nopadding" th:if="${teamId == null}">
                        <select class="form-control chosen-select" id="teamId" tabindex="2">
                            <option selected value="">选择门店</option>
                            <option th:each="item: ${teams}" th:text="${item.tXiaoqu+ +item.id}"
                                    th:value="${item.id}"></option>
                        </select>
                    </div>

                    <div class="columns pull-left col-md-1 nopadding">
                        <input class=" form-control" id="start"
                               name="start" onclick="laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss'})"
                               placeholder="核销开始时间"
                               readonly="readonly"
                               style="background-color: #fff;" type="text"/>
                    </div>
                    <div class="columns pull-left">
                        <label style="font-weight: 700;float: left;padding: 3px 10px;line-height: 2;font-size: 15px">
                            <i class="fa fa-exchange"></i>
                        </label>
                    </div>
                    <div class="columns pull-left col-md-1 nopadding">
                        <input class=" form-control" id="end"
                               name="end" onclick="laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss'})"
                               placeholder="核销结束时间"
                               readonly="readonly"
                               style="background-color: #fff;" type="text"/>
                    </div>

                    <div class="columns pull-left col-md-1 nopadding">
                        <input class=" form-control" id="day"
                               name="day" onclick="laydate({istime: true, format: 'YYYY-MM-DD'})"
                               placeholder="查询某一天的核销数据"
                               readonly="readonly"
                               style="background-color: #fff;" type="text"/>
                    </div>


                    <!--                    <div>-->
                    <!--                        <p style="text-align:center;">请选择门店-->
                    <!--                        <p>-->
                    <!--                            <select id="teamId" class="form-control chosen-select" tabindex="2">-->
                    <!--                                <option value="" selected>选择门店</option>-->
                    <!--                                <option th:each="item: ${teams}" th:text="${item.tXiaoqu+ +item.id}"-->
                    <!--                                        th:value="${item.id}"></option>-->
                    <!--                            </select>-->
                    <!--                    </div>-->


                </div>
                <br/><br/>
                <div class="fixed-table-toolbar">
                    <h3>核销总数: <span id="total"></span>, 核销总金额: <span id="price"></span></h3>
                </div>
                <table data-mobile-responsive="true" id="storeVerifyTable"></table>
            </div>
        </div>
    </div>

</div>
<div th:include="statistics/commander/include :: footer"></div>
<script src="/js/plugins/distpicker/distpicker.data.min.js"
        th:src="@{/js/plugins/distpicker/distpicker.data.min.js}"></script>
<script src="/js/plugins/distpicker/distpicker.min.js" ></script>
<script src="/js/appjs/statistics/achievement/storeVerifyStatsDetail.js" type="text/javascript"></script>
</body>
</html>